import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component:()=>import('@/views/Login.vue'),
    },
    {
      path:'/index',
      component:()=>import('@/views/Index.vue'),
      children:[
        {
          path:'/memberadd',
          component:()=>import('@/views/member/memberadd.vue'),
        },
        {
          path:'/memberList',
          component:()=>import('@/views/member/MemberList.vue'),
        },
        {
          path:'/memberUpdate',
          component:()=>import('@/views/member/MemberUpdate.vue'),
        },
        {
          path:'/memberFind',
          component:()=>import('@/views/member/MemberFind.vue'),
        },
        {
          path:'/shopadd',
          component:()=>import('@/views/Shop/AddShop.vue'),
        },
        {
          path:'/listshop',
          component:()=>import('@/views/Shop/ListShop.vue'),
        },
        {
          path:'/updateshop',
          component:()=>import('@/views/Shop/UpdateShop.vue'),
        },
        {
          path:'/detaukshop',
          component:()=>import('@/views/Shop/DetaukShop.vue'),
        },
        {
          path:'/housetypeadd',
          component:()=>import('@/views/HouseType/HouseTypeAdd.vue'),
        },
        {
          path:'/housetypelist',
          component:()=>import('@/views/HouseType/HoustTypeList.vue'),
        },
        {
          path:'/housenoadd',
          component:()=>import('@/views/HouseType/HouseNoAdd.vue'),
        },
        {
          path:'/housenolist',
          component:()=>import('@/views/HouseType/HouseNoList.vue'),
        },
        {
          path:'/houserowadd',
          component:()=>import('@/views/HouseType/HouseRowAdd.vue'),
        },
        {
          path:'/houserowlist',
          component:()=>import('@/views/HouseType/HouseRowList.vue'),
        },
        {
          path:'/houseplanadd',
          component:()=>import('@/views/HouseType/HousePlanAdd.vue'),
        },
      ]
    },
    
  ],
})

export default router
